<?php

// mbilling/BillingBundle/Entity/usersTransactions.php
namespace mbilling\BillingBundle\Entity;
use Doctrine\ORM\Mapping as ORM;

/**
 * @ORM\Entity
 */
class usersTransactions
{
    /**
     * @ORM\Id
     * @ORM\Column(type="integer")
     * @ORM\GeneratedValue(strategy="AUTO")
     */
    protected $id;

    /**
     * @ORM\Column(type="datetime")
     */
    protected $created_at;
    
    /**
     * @ORM\Column(type="float")
     */
    protected $money;
      
    /**
     * @ORM\Column(type="integer")
     */
    protected $order_id;
	
    /**
     * @ORM\Column(type="integer")
     */
    protected $user_id;
	
    /**
     * @ORM\Column(type="integer")
     */
    protected $bill_id;

    /**
     * @ORM\Column(type="boolean")
     */
    protected $is_adding;
    
    /**
     * @ORM\Column(type="boolean")
     */
    protected $is_regular;
    
    /**
     * @ORM\Column(type="boolean")
     */
    protected $is_active;
    
    public function setIsActive($is_active)
    {
        $this->is_active = $is_active;
    }
    public function getIsActive()
    {
        return $this->is_active;
    }
    
    public function __construct()
    {
        $this->setCreatedAt(new \DateTime());
    }
    
    public function setId($id)
    {
        $this->id = $id;
    }
    public function getId()
    {
        return $this->id;
    }

    public function setCreatedAt($created_at)
    {
        $this->created_at = $created_at;
    }
    public function getCreatedAt()
    {
        return $this->created_at;
    }

    public function setMoney($money)
    {
        $this->money = $money;
    }
    public function getMoney()
    {
        return $this->money;
    }

    public function setOrderId($order_id)
    {
        $this->order_id = $order_id;
    }
    public function getOrderId()
    {
        return $this->order_id;
    }

    public function setUserId($user_id)
    {
        $this->user_id = $user_id;
    }
    public function getUserId()
    {
        return $this->user_id;
    }

    public function setBillId($bill_id)
    {
        $this->bill_id = $bill_id;
    }
    public function getBillId()
    {
        return $this->bill_id;
    }

    public function setIsAdding($is_adding)
    {
        $this->is_adding = $is_adding;
    }
    public function getIsAdding()
    {
        return $this->is_adding;
    }

    public function setIsRegular($is_regular)
    {
        $this->is_regular = $is_regular;
    }
    public function getIsRegular()
    {
        return $this->is_regular;
    }
    
    public function initDefaultEntity()
    {
        $this->setMoney('666.6');
        $this->setOrderId('1');
        $this->setUserId('2');
        $this->setBillId('1');
        $this->setIsAdding('1');
        $this->setIsAdding('0');
        $this->setIsActive('1');
        return $this;
    }
}
?>
